import turtle
for i in range(10):
    if i % 2 == 0:
        turtle.pencolor("red")
    else:
        turtle.pencolor("blue")
    turtle.forward(i * 10)